package com.transfiguro.datamodel;

import java.util.ArrayList;
import java.util.List;

public abstract class GenericStatement implements Statement {
    private double conversionTime;
    protected List<Statement> statements;
    protected boolean REQUIRE_CLOSING = false;

    public GenericStatement() {
        statements = new ArrayList<Statement>();
    }

    public boolean isRequireClosing() {
        return REQUIRE_CLOSING;
    }

    public List<Statement> getStatements() {
        return statements;
    }

    public void addStatement(final Statement statement) {
        statements.add(statement);
    }

    public double getConversionTime() {
        return conversionTime;
    }

    public void setConversionTime(final double conversionTime) {
        this.conversionTime = conversionTime;
    }
}
